Merge "Make wfForeignMemcKey consistent with wfMemcKey"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 3 Aug 2013 05:20:17 +0000 (05:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 3 Aug 2013 05:20:17 +0000 (05:20 +0000)
includes/GlobalFunctions.php

index 65b4c23..fda8294 100644 (file)
@@ -3390,7 +3390,7 @@ function wfForeignMemcKey( $db, $prefix /*, ... */ ) {
        } else {
                $key = $db . ':' . implode( ':', $args );
        }
-       return $key;
+       return str_replace( ' ', '_', $key );
 }
 
 /**